package com.bw.ppjokeplay.mvvm.model.sofa

import com.bw.ppjokeplay.commen.entity.BaseEntity
import com.bw.ppjokeplay.commen.mvvm.model.BaseModel
import com.bw.ppjokeplay.commen.network.Api
import com.bw.ppjokeplay.commen.network.ApiServer
import com.bw.ppjokeplay.mvvm.model.entity.HomeFeedEntity
import io.reactivex.Observable

/**
 * @author Lishaohe
 * @description:
 * @date :2021/11/12 0012 上午 11:17
 *
 */
class SofaVideoModel: BaseModel() {
    fun requestsofaList(
        feedId : Int,
        feedType:String,
        pageCount:Int,
        userId:Int
    ): Observable<BaseEntity>?{
        val homeOB: Observable<HomeFeedEntity> =
            ApiServer.instance().getRetrofit()!!.create(Api::class.java)
                .requestHomeList(feedId, feedType, pageCount, userId)
        return changeFun(homeOB)
    }
}